package com.gitee.wsl.compose.chart.sleepgraph.bean

import com.gitee.wsl.time.between
import kotlinx.datetime.LocalDateTime
import kotlin.time.Duration

data class SleepPeriod( // 每日睡眠中的不同睡眠阶段
    val startTime: LocalDateTime,
    val endTime: LocalDateTime,
    val type: SleepType,
) {

    val duration: Duration by lazy {
        Duration.between(startTime, endTime)
    }
}
